import { motion, useScroll } from "framer-motion";

export default function App() {
    const { scrollYProgress } = useScroll();

    return (
        <>
            <motion.div
                className="progress-bar"
                style={{ scaleX: scrollYProgress, position: 'fixed' }}
            />
        </>
    );
}
